<?
include_once("database_info.php");
include_once("common.php");
include_once("../common.php");
connect_select_test($_POST['table']);
if ($_POST['key'] == crypt("He1sR1sen", $_POST['key'])){
	$query = "UPDATE `".$_POST['table']."` SET `".$_POST['col']."`='".mysql_real_escape_string($_POST['value'])."' WHERE `id`='".$_POST['id']."'";
	if (mysql_query($query)){
		echo "Updated column ".$_POST['col'].".";
	} else {
		echo mysql_error();
	}
}
?>